<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>student</title>
    <link href="/bootstrap/css/bootstrap.css" rel="stylesheet" type="text/css">

    <script src="/js/vue.js"></script>
    <script src="/js/axios.min.js"></script>
</head>
<body>
<div id="app">
    <div class=container>
        <div class="panel panel-danger">
            <div class="panel-heading">招聘信息详情页</div>
            <div class="panel-body">
                <p>详情信息</p>
            </div>
            <form class="form-horizontal">
                <input type="hidden" v-model="position.position_id" name="position_id" />
                <div class="form-group">
                    <label for="uname" class="col-sm-2 control-label">公司名称</label>
                    <div class="col-sm-10">
                        <input type="text" v-model="position.company_name" name="name"  class="form-control" id="inputPassword3" placeholder="">
                    </div>
                </div>
                <div class="form-group">
                    <label for="uname" class="col-sm-2 control-label">公司领域</label>
                    <div class="col-sm-10">
                        <input type="text" v-model="position.company_type" name="type"  class="form-control" id="inputPassword3" placeholder="">
                    </div>
                </div>
                <div class="form-group">
                    <label for="uname" class="col-sm-2 control-label">工作职位</label>
                    <div class="col-sm-10">
                        <input type="text" v-model="position.job" name="job"  class="form-control" id="inputPassword3" placeholder="">
                    </div>
                </div>
                <div class="form-group">
                    <label for="uname" class="col-sm-2 control-label">工作分类</label>
                    <div class="col-sm-10">
                        <input type="text" v-model="position.job_type" name="job_type"  class="form-control" id="inputPassword3" placeholder="">
                    </div>
                </div>
                <div class="form-group">
                    <label for="uname" class="col-sm-2 control-label">薪酬待遇</label>
                    <div class="col-sm-10">
                        <input type="text" v-model="position.job_pay" name="job_pay"  class="form-control" id="inputPassword3" placeholder="">
                    </div>
                </div>
                <div class="form-group">
                    <label for="uname" class="col-sm-2 control-label">工作经验</label>
                    <div class="col-sm-10">
                        <input type="text" v-model="position.experience" name="experience"  class="form-control" id="inputPassword3" placeholder="">
                    </div>
                </div>
                <div class="form-group">
                    <label for="uname" class="col-sm-2 control-label">教育程度</label>
                    <div class="col-sm-10">
                        <input type="text" v-model="position.education" name="education"  class="form-control" id="inputPassword3" placeholder="">
                    </div>
                </div>
                <div class="form-group">
                    <label for="uname" class="col-sm-2 control-label">岗位职责</label>
                    <div class="col-sm-10">
                        <input type="text" v-model="position.job_duties" name="job_duties"  class="form-control" id="inputPassword3" placeholder="">
                    </div>
                </div>
                <div class="form-group">
                    <label for="uname" class="col-sm-2 control-label">工作地点</label>
                    <div class="col-sm-10">
                        <input type="text" v-model="position.company_site" name="company_site"  class="form-control" id="inputPassword3" placeholder="">
                    </div>
                </div>
                <div class="form-group">
                    <label for="uname" class="col-sm-2 control-label">公司创立时间</label>
                    <div class="col-sm-10">
                        <input type="text" v-model="position.company_time" name="company_time"  class="form-control" id="inputPassword3" placeholder="">
                    </div>
                </div>
                <!--                <div class="form-group">-->
                <!--                    <label for="uname" class="col-sm-2 control-label">状态</label>-->
                <!--                    <div class="col-sm-10">-->
                <!--                        <input type="text" v-model="position.position_state" name="position_state"  class="form-control" id="inputPassword3" placeholder="">-->
                <!--                    </div>-->
                <!--                </div>-->
                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10">
                        <a href="position.html"><button type="button"  class="btn btn-info">返回</button></a>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
</body>
</html>

<script>
    new Vue({
        el:"#app",
        data:{
            position:{
            }
        },
        methods:{
        },
        mounted(){
            var _this = this
            var position_id = window.localStorage.getItem("sid")
            console.log("主键为："+ position_id)
            axios.get('/position/look',{
                params:{
                    position_id: position_id
                }
            })
                .then(function (response){
                    _this.position = response.data
                    console.log(response.data);
                })
                .catch(function (error){
                    console.log(error);
                });

        },
    })
</script>


